const KEY = 'my-avatar-big-event-pc'

// 获取
export const getAvatarStorage = () => {
  return localStorage.getItem(KEY)
}

// 设置
export const setAvatarStorage = (newCategory) => {
  localStorage.setItem(KEY, newCategory)
}

// 删除
export const delAvatarStorage = () => {
  localStorage.removeItem(KEY)
}

// 获取昵称
export const getUserName = () => {
  return localStorage.getItem('name')
}

// 设置昵称
export const setUserName = (name) => {
  localStorage.setItem('name', name)
}

// 删除昵称
export const delUserName = () => {
  localStorage.removeItem('name')
}
